package com.liaoyifan.core.valid.constraints;

import com.liaoyifan.core.valid.validator.ScaleValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.*;

@SuppressWarnings("unused")
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ScaleValidator.class)
@Documented
public @interface Scale {

    int value() default 2;

    String message() default "{com.liaoyifan.core.valid.constraints.Scale.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
